﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_TempAdmin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["adminID"] == null || Session["adminID"].ToString() == "")
                Response.Redirect("Login.aspx");
        }
        catch (Exception)
        {
            Response.Redirect("Login.aspx");
        }

        //if (!IsPostBack)
        //{
        //    if (Session["index"] != null)
        //    {
        //        try
        //        {
        //            int index = Int32.Parse(Session["index"].ToString());
        //        }
        //        catch (Exception)
        //        { }
        //    }

        //    if (Session["adminCrit"] != null)
        //    {
        //        try
        //        {
        //            string crit = Session["adminCrit"].ToString();
        //        }
        //        catch (Exception)
        //        { }
        //    }
        //}
    }
}
